/**
 * 这是手机号码修改
 */

import { Steps } from 'antd';

const { Step } = Steps;
import styles from './change.less';
import StepOne from './accountStepOne';
import StepTwo from './accountStepTwo';
import { useState } from 'react';
export default function IndexPage(props) {
  const [nowStep, setNowStep] = useState(0);
  return (
    <div className={styles.selectWrap}>
      <div className={styles.selectHead}>
        <span
          onClick={() => {
            props.setShowType(1);
          }}
          className={styles.selectItem}
        >
          手机号码修改
        </span>
        <span className={`${styles.selectItem} ${styles.selectItemAct}`}>
          密码修改
        </span>
      </div>
      <div className={styles.stepWrap}>
        <Steps current={nowStep}>
          <Step title="账号验证" description="请填写相关信息" />
          <Step title="重置手机号" description="请输入密码信息" />
        </Steps>
      </div>
      <div>
        {nowStep === 0 ? (
          <StepOne setNowStep={setNowStep}></StepOne>
        ) : (
          <StepTwo setNowStep={setNowStep}></StepTwo>
        )}
      </div>
    </div>
  );
}
